/*
 * @Author: HeAo
 * @Date: 2021-12-28 08:32:18
 * @LastEditTime: 2021-12-28 08:44:19
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \study\day03\1-解构.js
 * 别乱动！
 */
let obj1 = {
  name: 'zhangsan',
  age: 12
}

// let name = obj1.name
// let age = obj1.age

let { name } = { name: 'zhangsan', gender: 'male' }
console.log(name, age);

function myfun ({ name, age }) {
  console.log(name);
  console.log(age);
}
myfun(obj1)